import { app } from "electron";
import { existsSync, readFileSync,readFile } from "fs";
import { join } from "path";
import { cmdExec, isDev } from "../utils";
import { appListCmd } from "./cmdConfig";
import fs from "fs";
export const parseCsv=async()=>{
    const dataPath="d:\\data.csv";
    if(!fs.existsSync(dataPath)){
        return '';
    }
    console.log(dataPath)
    readFile(dataPath,'utf8',(err,data)=>{
        let dataList=data.split('\n')
        dataList.forEach((item)=>{
            console.log(item)
        })
    })
    return dataPath;

}